<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>

<header>
    <h1>对话记录搜索结果</h1>
</header>

<div class="container">
    <div class="search-results">
        <h2>搜索结果</h2>
        <p>关键词：{{ keyword }}</p>
        <p>开始日期：{{ start_date }} - 结束日期：{{ end_date }}</p>

        <table>
            <thead>
                <tr>
                    <th>ID</th>
                    <th>用户消息</th>
                    <th>坐席消息</th>
                    <th>对话总结</th>
                    <th>标签</th>
                    <th>时间</th>
                </tr>
            </thead>
            <tbody>
                {% for dialog in dialogs %}
                <tr>
                    <td>{{ dialog[0] }}</td>
                    <td>{{ dialog[3] }}</td>
                    <td>{{ dialog[4] }}</td>
                    <td>{{ dialog[5] }}</td>
                    <td>{{ dialog[6] }}</td>
                    <td>{{ dialog[7] }}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>

</body>
</html>
